﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="InvoiceEdit.aspx.cs" Inherits="InvoiceEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <div class="clear"></div>
        <h2 class="title  BPGNinoMtavruli-Bold"></h2>
        <div class="UserAddForm potiForm">
            <div class="form">
                <input type="hidden" name="edit_user" value="Edit User" />
                <div class="FormTitle">
                    Port Dues and Charges        	
                </div>
                <ul class="wid335">
                    <li>
                        <label for="email">InvoiceNo</label>
                        <input type="text" name="invoinceNum" value="" class="invoinceNum wid103" />
                        <asp:DropDownList ID="ddlCreDeb" runat="server" class="wid103 right">
                            <asp:ListItem>CRE</asp:ListItem>
                            <asp:ListItem>DEB</asp:ListItem>
                        </asp:DropDownList>
                    </li>
                    <li>
                        <label for="date">Date</label>
                        <input type="text" name="date" class="date wid103" />
                    </li>
                    <li>
                        <label for="Remark">Remark</label>
                        <input type="text" name="Remark" class="Remark wid253" />
                    </li>
                </ul>
                <ul class="wid410">
                    <li>
                        <label>Company</label>
                        <asp:DropDownList ID="ddlClients" runat="server" class="wid344" DataValueField="ClientID" DataTextField="Name" DataSourceID="ClientDS"
                            AutoPostBack="true" OnSelectedIndexChanged="ddlClients_SelectedIndexChanged">
                        </asp:DropDownList>
                    </li>
                    <li>
                        <label>TRN</label>
                        <asp:Label ID="lblTRN" runat="server"></asp:Label>
                    </li>
                </ul>
                <fieldset>
                    <legend></legend>
                    <ul class="wid465">
                        <li class="wid465">
                            <asp:DropDownList ID="ddlVessel" runat="server" AutoPostBack="true" DataSourceID="VesselDS" class="wid410 right"
                                DataTextField="Name" DataValueField="VesselID" OnSelectedIndexChanged="ddlVessel_SelectedIndexChanged">
                            </asp:DropDownList>
                        </li>
                    </ul>
                    <div class="clear"></div>
                    <ul class="wid344">
                        <li>
                            <p class="fieldName">Vessel:</p>
                            <p>
                                <asp:Literal ID="lblVesselName" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">LOA:</p>
                            <p>
                                <asp:Literal ID="lblLOA" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">IMO:</p>
                            <p>
                                <asp:Literal ID="lblIMO" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">BEAM:</p>
                            <p>
                                <asp:Literal ID="lblBeam" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">Flag:</p>
                            <p>
                                <asp:Literal ID="lblFalg" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">Depth:</p>
                            <p>
                                <asp:Literal ID="lblDepth" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">Type:</p>
                            <p>
                                <asp:Literal ID="lblVesselType" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">Volume:</p>
                            <p class="bordered">
                                <asp:Literal ID="lblVolume" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li>
                            <p class="fieldName">GRT:</p>
                            <p>
                                <asp:Literal ID="lblGRT" runat="server"></asp:Literal>
                            </p>
                        </li>
                    </ul>
                    <ul class="wid250 middleUl">
                        <li class="wid250 withSlct">
                            <p class="fieldName">Traffic:</p>
                            <asp:DropDownList ID="ddlTraffic" runat="server" Width="165" CssClass="wid165">
                                <asp:ListItem>Foreign</asp:ListItem>
                                <asp:ListItem>Coastal</asp:ListItem>
                            </asp:DropDownList>
                        </li>
                        <li class="wid250 withSlct">
                            <p class="fieldName">Regime:</p>
                            <p>
                                <asp:Literal ID="lblRegime" runat="server"></asp:Literal>
                            </p>
                        </li>
                        <li class="wid250 withSlct">
                            <p class="fieldName">Purpose:</p>
                            <asp:DropDownList ID="ddlPurpose" Width="165" CssClass="wid165" runat="server" AutoPostBack="false" DataSourceID="PurposeDS"
                                DataTextField="Name" DataValueField="PurposeID">
                            </asp:DropDownList>
                        </li>
                        <li class="wid250 withSlct">
                            <p class="fieldName">RepeatedCall:</p>
                            <asp:DropDownList ID="ddlRepeatedCall" Width="165" CssClass="wid165" runat="server" AutoPostBack="false">
                                <asp:ListItem>First Call</asp:ListItem>
                                <asp:ListItem>Second Call</asp:ListItem>
                                <asp:ListItem>Third Call</asp:ListItem>
                            </asp:DropDownList>
                        </li>
                        <li class="wid250 withSlct">
                            <p class="fieldName">Group:</p>
                            <p>
                                <asp:Literal ID="lblVesselCode" runat="server"></asp:Literal>
                            </p>
                            <p class="fieldName">Berth No:</p>
                        </li>
                        <li class="wid250 withSlct">
                            <asp:DropDownList ID="ddlBerthNo" Width="165" CssClass="wid165" runat="server" AutoPostBack="false">
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                            </asp:DropDownList>
                        </li>
                    </ul>
                    <ul class="wid150">
                        <li class="wid150 withChkbox">
                            <p class="fieldName">Add Holiday:</p>
                            <asp:CheckBox ID="chbHoliday" runat="server" />
                        </li>
                        <li class="wid150 withChkbox">
                            <p class="fieldName">LinerStatus:</p>
                            <asp:CheckBox ID="chbLinerStatus" runat="server" />
                        </li>
                        <li class="wid150 withChkbox">
                            <p class="fieldName">LinerStatus:</p>
                            <asp:CheckBox ID="chbIsBerthRebate" runat="server" />
                        </li>
                    </ul>
                </fieldset>
                <div class="rightBox">
                    <label>Send to mail </label>
                    <asp:CheckBox ID="IsSendToMail" Text="" runat="server" />
                    <button type="submit" class="button_grey">Preliminaty Invoice</button>
                    <button type="submit" class="button_grey">Issue Invoice</button>
                </div>
                <div class="clear"></div>
                <ul class="wid165 bottom">
                    <li>
                        <label for="employee">Employee</label>
                        <input type="text" name="employee" class="wid165 right">
                    </li>
                </ul>
                <ul class="wid410 bottom">
                    <li class="wid130"></li>

                    <li class="wid253">
                        <label for="total">Total:</label>
                        <input type="text" name="total" class="wid165">
                    </li>
                    <li class="wid130">
                        <label for="qty">Call Q-ty:</label>
                        <input type="text" name="qty" class="wid45">
                    </li>
                    <li class="wid253">
                        <label for="subtotal">SubTotal:</label>
                        <input type="text" name="subtotal" class="wid165">
                    </li>
                </ul>
                <div class="clear"></div>
            </div>

        </div>
    </div>
    <br />
    <br />
    <br />
    <br />
    <%--<table style="width: 75%; background-color: lightcyan;">
        <tr>
            <td>Vessel:
            </td>
            <td>
                <asp:Label ID="lblVesselName2" runat="server"></asp:Label>
            </td>
            <td>LOA:
            </td>
            <td>
                <asp:Label ID="lblLOA2" runat="server"></asp:Label>
            </td>
            <td>Traffic:
            </td>
            <td></td>
            <td>SBT:
            </td>
            <td></td>
        </tr>
        <tr>
            <td>IMO:
            </td>
            <td>
                <asp:Label ID="lblIMO2" runat="server"></asp:Label>
            </td>
            <td>BEAM:
            </td>
            <td>
                <asp:Label ID="lblBeam2" runat="server"></asp:Label>
            </td>
            <td>Regime:
            </td>
            <td>
                <asp:Label ID="lblRegime2" runat="server"></asp:Label>
            </td>
            <td>BerthRebate:
            </td>
            <td></td>
        </tr>
        <tr>
            <td>Flag:
            </td>
            <td>
                <asp:Label ID="lblFalg2" runat="server"></asp:Label>
            </td>
            <td>Depth:
            </td>
            <td>
                <asp:Label ID="lblDepth2" runat="server"></asp:Label>
            </td>
            <td>Purpose:
            </td>
            <td>
                <asp:DropDownList ID="ddlPurposes" runat="server" AutoPostBack="false" DataSourceID="PurposeDS"
                    DataTextField="Name" DataValueField="PurposeID">
                </asp:DropDownList>
            </td>
            <td>AddHoliday:
            </td>
            <td>
                <asp:CheckBox ID="chbHoliday2" runat="server" />
            </td>
        </tr>
        <tr>
            <td>Type:
            </td>
            <td>
                <asp:Label ID="lblVesselType2" runat="server"></asp:Label>
            </td>
            <td>Volume:
            </td>
            <td>
                <asp:Label ID="lblVolume2" runat="server"></asp:Label>
            </td>
            <td>RepeteadCall:
            </td>
            <td>
                <asp:DropDownList ID="ddlRepeteadCall" runat="server" AutoPostBack="false">
                    <asp:ListItem>First Call</asp:ListItem>
                    <asp:ListItem>Second Call</asp:ListItem>
                    <asp:ListItem>Third Call</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>LinerStatus:
            </td>
            <td>
                <asp:CheckBox ID="chbLinerStatus2" runat="server" />
            </td>
        </tr>
        <tr>
            <td>GRT:
            </td>
            <td>
                <asp:Label ID="lblGRT2" runat="server"></asp:Label>
            </td>
            <td></td>
            <td>Group:
            </td>
            <td>
                <asp:Label ID="lblVesselCode2" runat="server"></asp:Label>
            </td>
            <td>BerthNo
            </td>
            <td></td>
        </tr>
    </table>--%>
    <br />

    <asp:ObjectDataSource ID="VesselDS" runat="server" SelectMethod="GetAll" TypeName="DAL.DBManagers.VesselsManager"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="PurposeDS" runat="server" SelectMethod="GetAll" TypeName="DAL.DBManagers.PurposesManager"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ClientDS" runat="server" SelectMethod="GetAll" TypeName="DAL.DBManagers.ClientsManager"></asp:ObjectDataSource>
</asp:Content>

